/**
 * 
 */
package com.brother.goallife.dto;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.brother.goallife.AbstractGoallifeEntity;

/**
 * @author anhtuan_truong
 * 
 */
@Entity
@Table(name = "T_MEMBER")
public class Member extends AbstractGoallifeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5348876446380051433L;

	private String firstname;
	private String lastname;
	private Date birthday;
	private String phoneNumber;
	private String email;

	private Integer markGoals;
	private Integer markSupports;
	private Integer markChallenges;

	@Column(name = "FIRST_NAME", nullable = false, length = 35)
	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	@Column(name = "LAST_NAME", nullable = false, length = 35)
	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "BIRTHDAY", nullable = false)
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "PHONE_NUMBER", nullable = false, length = 15)
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	@Column(name = "EMAIL", nullable = false, length = 50)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "MARK_GOALS")
	public Integer getMarkGoals() {
		return markGoals;
	}

	public void setMarkGoals(Integer markGoals) {
		this.markGoals = markGoals;
	}

	@Column(name = "MARK_SUPPORTS")
	public Integer getMarkSupports() {
		return markSupports;
	}

	public void setMarkSupports(Integer markSupports) {
		this.markSupports = markSupports;
	}

	@Column(name = "MARK_CHALLENGES")
	public Integer getMarkChallenges() {
		return markChallenges;
	}

	public void setMarkChallenges(Integer markChallenges) {
		this.markChallenges = markChallenges;
	}

}
